﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EasyToHelp.Business;
using Microsoft.AspNetCore.Mvc;

namespace EasyToHelp.WAP.Controllers
{
    public class MarketController : Controller
    {
        public IActionResult Index(int Id)
        {
            ViewBag.MarketName = MarketBusiness.GetMarket().Where(x => x.Id == Id).FirstOrDefault().MarketName;
            return View();
        }
    }
}